import request from '@/utils/request'

// 查询专家团列表
export function listExpertTeam(query) {
  return request({
    url: '/api/expertTeam/list',
    method: 'get',
    params: query
  })
}

// 查询专家团详细
export function getExpertTeam(expertId) {
  return request({
    url: '/api/expertTeam/' + expertId,
    method: 'get'
  })
}

// 新增专家团
export function addExpertTeam(data) {
  return request({
    url: '/api/expertTeam/add',
    method: 'post',
    data: data
  })
}

// 修改专家团
export function updateExpertTeam(data) {
  return request({
    url: '/api/expertTeam/update',
    method: 'post',
    data: data
  })
}

// 删除专家团
export function delExpertTeam(expertId) {
  return request({
    url: '/api/expertTeam/delete/' + expertId,
    method: 'get'
  })
}
